package com.onehouse.api.dto.checkIn;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CheckInSubOrderDTO {

    LocalDate checkInDate;
    LocalDate checkOutDate;

    Room room;
    ArrayList<Customer> customers;
    Bill bill;

    @Data
    public static class Room {
        private Long roomId;
        private Long roomTypeId;
        private String roomNumber;
    };

    @Data
    public static class Customer {
        private String name;
        private String idCard;
        private String phone;
    }

    @Data
    public static class Bill {
        private BigDecimal rate;
        private BigDecimal deposit;
        private BigDecimal total;
    }

}
